package com.lc.user.express;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;




/**
 * Created by Administrator on 2016/2/29.
 */
public class WelcomeActivity extends Activity {
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_welcome);

        new Handler() {

            @Override
            public void handleMessage(Message msg) {
                showNextActivity();
            }

        }.sendEmptyMessageDelayed(0, 3000);

    }

    private void showNextActivity() {
//        if(AppContext.P2PPreferences.getIsFirst()){
//            startActivity(new Intent(WelComeActivity.this, GuidePageActivity.class));
//        }else{
            startActivity(new Intent(WelcomeActivity.this, MainActivity.class));
//        }
        finish();
    }
    @Override
    protected void onPause() {
        super.onPause();
//        JPushInterface.onPause(WelcomeActivity.this);
    }

    @Override
    protected void onResume() {
        super.onResume();
//        JPushInterface.onResume(WelcomeActivity.this);
    }
}
